package com.tedu.day2;

import java.math.BigDecimal;

public class TestDouble {
    public static void main(String[] args) {
        double d = 1.0;
        System.out.println(d);
        double d1 = Long.MAX_VALUE;
        System.out.println(d1);
        System.out.println(Long.MAX_VALUE);

        System.out.println(Double.MAX_VALUE);
        System.out.println(Double.MIN_VALUE);
        System.out.println(-Double.MAX_VALUE);
        System.out.println(-Double.MIN_VALUE);


        double d2 = 1.3;
        double d3 = 1.0;
        double d4 = d2-d3;
        System.out.println(d4);

        BigDecimal b1 = new BigDecimal(d2+"");
        BigDecimal b2 = new BigDecimal(d3+"");
        BigDecimal b3 = b1.subtract(b2);
        System.out.println(b3);

    }
}
